# -*- coding: utf-8 -*-
import win32com.client
from YuLing import YuLing
from YuHun import YuHun
import logger

dm = win32com.client.Dispatch('dm.dmsoft')
hwnd = dm.FindWindow("", "阴阳师-网易游戏")
dm_ret = dm.BindWindow(hwnd, "normal", "windows", "normal", 0)
choice = int(input("0.御魂 1.御灵\n"))
count = int(input("输入挑战次数\n"))
if choice == 0:
    YuHun(dm, count).run()
elif choice == 1:
    YuLing(dm, count).run()
